<?php

namespace app\yperp\command;


use app\yperp\common\Changhong;
use app\yperp\common\MyWebDriver;
use app\yperp\common\Redis;
use app\yperp\logic\yp\YpOrder;
use app\yperp\model\Supplier;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\Output;

class ypgoods extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('ypgoods')
            ->addArgument('type', Argument::OPTIONAL, "操作类型")
            ->setDescription('获取虹创所有商品数据');
    }

    protected function execute(Input $input, Output $output)
    {
        // 指令输出
        $this->input = $input;

        $this->output = $output;

        \app\yperp\logic\yp\YpGoods::getInstance()->getAllGoods();
    }
}
